-Xss128K -Xms250M -Xmx500M -XX:PermSize=100M -XX:MaxPermSize=200M -XX:MaxGCPauseMillis=10 -XX:MaxHeapFreeRatio=60 -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -Dsun.awt.keepWorkingSetOnMinimize=true -Didea.no.jdk.check=true
Install the intellij plugin for eclipse code formatting: http://code.google.com/p/eclipse-code-formatter-intellij-plugin/wiki/HowTo
Set the import order in the plugin to manual configuration with the following packages: java;javax;com;org;org.jboss;org.rhq
Turn off intellij's import optimizer: Preferences > Editor --> Auto Import (uncheck the java settings)
Preferences > Code Style --> Java --> Imports
Check Use single class import
Change Class count to use import with '*' to 99
Change Names count to use static import with '*' to 99
You may have to restart Intellij Idea at this point.
Here's the idea.vmoptions file I use:
-Xss128K -Xms250M -Xmx500M -XX:PermSize=100M -XX:MaxPermSize=200M -XX:MaxGCPauseMillis=10 -XX:MaxHeapFreeRatio=60 -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -Dsun.awt.keepWorkingSetOnMinimize=true -Didea.no.jdk.check=true
If you have lots of RAM, I'd set the max heap size even higher.